/* $Id: LanguagesFormatter.java 110 2011-01-24 21:33:40Z altdotua@gmail.com $ */

package alt.djudge.frontend.server.gui;

import alt.djudge.frontend.server.datatypes.LanguageEntry;
import alt.djudge.frontend.server.utils.Linker;


public class LanguagesFormatter extends AbstractFormatter<LanguageEntry>
{
	@Override
	protected void addClassData(LanguageEntry entry)
	{
		LanguageEntry l = (LanguageEntry) entry;

		addTableData(l.getId());
		addTableData(l.getSid());
		addTableData(l.getName());
		addTableData(l.getDjudgeId());
		addTableData(l.getVisible());
		addTableData("Delete", Linker.link("languages?id=" + l.getId()
				+ "&action=delete"));
	}

	@Override
	protected void addClassHeaders()
	{
		addTableHeader("ID");
		addTableHeader("Sid");
		addTableHeader("Name");
		addTableHeader("DjudgeId");
		addTableHeader("Visible");
		addTableHeader("Delete");
	}

	@Override
	protected String getCustomRowClass(LanguageEntry entry)
	{
		// TODO Auto-generated method stub
		return null;
	}
}
